let leavesModel = require("../model/leavesTable");//引入表

module.exports = {
    addleave: (data) => {
        return leavesModel.insertMany(data);//往这个表里面新增多条数据
    },
    getleave: (user) => {
        return leavesModel.find(user);//往这个表里面新增多条数据
    },
    updatatype: (path, target) => {
        return leavesModel.updateMany(path, target)
    }
}